SCALE

Syntax: SCALE [#ch,] size,x,y     
    or: SCALE [#ch,] -size,x,y   (Minerva v1.76+)
Location: QL ROM

The command SCALE allows you to set the graphics scale in a specified window (default #1). size dictates the graphics scale for that window by representing the length of a line which would be drawn from the bottom left hand corner of a window to the top left hand corner.

The default size is 100.

The co-ordinates x,y specify the co-ordinate which appears in the bottom left hand corner of the screen.

When a window is opened, the scale is reset with the equivalent of SCALE #ch,100,0,0.

Although a line drawn up the side of a window will be size units long, the length required to draw a line along the whole of the bottom of the window, not only depends on the value of size, but also on the screen resolution and the shape of the given window.

MINERVA NOTES:
Minerva ROMs (v1.76 or later) allow you to use a negative SCALE, so that you may easily draw a picture upside down without altering all of the different drawing commands. This is achieved by using the second syntax of the SCALE command.

Minerva in effect turns the graphics output around by 180 degrees about the graphics origin.

CROSS-REFERENCE:
CIRCLE, ARC, LINE and POINT all rely on the current SCALE.
